import {
  service,
  post
} from "./request/request";

/**
 * 处方列表
 */
export function getRecipeDoctorRecipes(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/doctorRecipes`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}

/**
 * 处方详情
 */
export function getRecipeControllerRecips(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/recipes`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}

/**
 * 新增处方
 */
export function getRecipeControllerAddRecip(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/addRecipe`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}

/**
 * 新增处方病历
 */
export function addRecipeMedicalHistory(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/addRecipeMedicalHistory`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}


/**
 * 取消处方
 */
export function getRecipeControllerUpdateStatus(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/updateStatus`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}


/**
 * 修改处方（弃用）
 */
export function getRecipeControllerUpdateRecipe(param) {
  return service({
    url: `/V1.0.0/web_doctor/recipe/updateRecipe`,
    method: 'post',
    data: {
      ...param
    },
    params: {
      ...param
    }
  })
}